#!/bin/bash
NGINX_DIR=`pwd`
docker stop nginx
docker rm nginx
docker run -d --restart always -p 80:80 --name nginx --privileged=true -v ${NGINX_DIR}:/usr/share/nginx/html -v ${NGINX_DIR}/nginx.conf:/etc/nginx/nginx.conf:ro -v /opt/pig-ui/dist:/pig-ui --add-host="pig-mysql:192.168.0.5" --add-host="pig-redis:192.168.0.5" --add-host="pig-gateway:192.168.0.5" --add-host="pig-register:192.168.0.5" --add-host="pig-sentinel:192.168.0.5" --add-host="pig-monitor:192.168.0.5" --add-host="pig-upms:192.168.0.5" nginx

#      - "pig-mysql:192.168.0.5"
#      - "pig-redis:192.168.0.5"
#      - "pig-gateway:192.168.0.5"
#      - "pig-register:192.168.0.5"
#      - "pig-sentinel:192.168.0.5"
#      - "pig-monitor:192.168.0.5"
#      - "pig-upms:192.168.0.5"

